const router = require("koa-router")();
const { ObjectId } = require("mongodb");
const main = require("../models");
router.get("/detail",async ctx=>{
    var {_id} = ctx.query;
    console.log(_id)
    var talbe = await main("member");
    var result = await talbe.find({_id:ObjectId(_id)}).toArray();
    ctx.body = result
})

module.exports = router;